package src.main.java.org.singleInstance;

public class Test1 {
    public static void main(String[] args) {
        A object = A.getObject();
        A object1 = A.getObject();
        System.out.println(object1);
        System.out.println(object);

        B b = B.getInstance();
        B b1 = B.getInstance();
        System.out.println(b==b1);
    }

}
